const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  // compact: true, // 禁用优化降级
  lintOnSave: false,
  css: {
    loaderOptions: {
      scss: {
        additionalData: `@use "@/styles/variables.scss";`, // 替换旧版 prependData
      },
    },
  },
  //配置代理跨域
  devServer: {
    proxy: {
      "/api": {
        // target: 'http://192.168.196.101:8081',
        target: "http://localhost:8081",
        changeOrigin: true,
        // pathRewrite: {
        //   '^/api': ''
        // }
      },
    },
  },
});
